<?php

namespace App\Livewire\Components;

use App\Models\ConfigItem;
use Livewire\Component;


class Footer extends Component
{
    public $ipc_info;

    public $police_info;

    public function mount()
    {
        $ipcInfo = ConfigItem::query()->where('id', 3)->value('content');
        $policeInfo = ConfigItem::query()->where('id', 4)->value('content');
        $this->ipc_info = $ipcInfo;
        $this->police_info = $policeInfo;
    }

    public function render()
    {
        return view('livewire.components.footer', [
            'ipc_info'    => $this->ipc_info,
            'police_info' => $this->police_info,
        ]);
    }
}
